package com.liuwei.msmall.product.feign;

import com.liuwei.msmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Classname SeckillFeginService
 * @Date 2021/5/5 23:40
 * @Created by 刘
 */
@FeignClient("msmall-seckill-service")
public interface SeckillFeginService {

    @GetMapping("/currentSeckillSkuInfo")
    R getCurrentSeckillSkuInfo();

    @GetMapping("/sku/seckill/{skuId}")
    R getSkuSeckillInfo(@PathVariable("skuId") Long skuId);

}
